import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/login/login.vue')
    },
    {
      path: '/',
      component: () => import('@/views/Layout/layout.vue'),
      children: [
        {
          path: '/account',
          name: 'account',
          component: () => import('@/views/account/account.vue')
        }
      ]
    }
  ]
})

export default router
